#include <iostream>
using namespace std;
class CPolygon
{
protected:
	int width;
	int height;
public:
	void setValues(int a, int b);
};
class CRectangle:public CPolygon
{
public:
	int area();
};
class CTriangle :public CPolygon
{
public:
	int area();
};